package com.system.dao;

import com.system.entity.Teacher;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.CrossOrigin;

import java.util.List;
import java.util.Map;

@Repository
@CrossOrigin
public interface TeacherMapper {
    int deleteByPrimaryKey(Long teaId);

    int insert(Teacher record);

    int insertSelective(Teacher record);

    Teacher selectByPrimaryKey(Long teaId);

    int updateByPrimaryKeySelective(Teacher record);

    int updateByPrimaryKey(Teacher record);

    public Teacher findByTeacherId(Long id);

    public Teacher findByUserName(String tea_name);

    public int add(Teacher teacher);

    public int edit(Teacher teacher);

    public int delete(Long tid);

    public List<Teacher> findList(Map<String,Object> queryMap);

    public List<Teacher> findAll();

    public int getTotal(Map<String,Object> queryMap);
}
